#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: Company.cs
 * Purpose: ViewModel class for Company
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  08/13/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace Jb.Web.ViewModels
{
    [Serializable]
	public class CompanyViewModel : BaseViewModel
	{
        /// <summary>
        /// Gets or sets the ID
        /// </summary>
        public int ID { get; set; }
        [Required(ErrorMessage = "Please Select a Industry Type")]
        [Display(Name = "Industry Type")]
        public int IndustryTypeID { get; set; }

        [Required(ErrorMessage = "Please Enter a Name")]
        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Name")]
        public String Name { get; set; }

        [StringLength(30, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Alias")]
        public String Alias { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Slogan")]
        public String Slogan { get; set; }

        [StringLength(150, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Logo File")]
        public String LogoFile { get; set; }

        [Required(ErrorMessage = "Please Select an Address")]
        [Display(Name = "Address")]
        public AddressViewModel Address { get; set; }

        //[Required(ErrorMessage = "Please Enter a Rating")]
        [Display(Name = "Rating")]
        public String Rating { get; set; }

        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Description")]
        public String Description { get; set; }

        //[Required(ErrorMessage = "Please Choose Is Active?")]
        [Display(Name = "Is Active")]
        public String IsActive { get; set; }

        [Display(Name = "Activation Key")]
        public String ActivationKey { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Url")]
        public String Url { get; set; }

        //[Required(ErrorMessage = "Please Enter a Created On")]
        [Display(Name = "Created On")]
        public String CreatedOn { get; set; }

        //[Required(ErrorMessage = "Please Enter a Modified On")]
        [Display(Name = "Modified On")]
        public String ModifiedOn { get; set; }

        #region Properties Used in Image Cropping

        public int Width { get; set; }

        public int Height { get; set; }

        public String CropProperty { get; set; }

        public String OriginalFileName { get; set; }

        #endregion Properties Used in Image Cropping
    }
}

